package com.fortune.dto.in.salesMan;

import com.fortune.constants.PatternConstants;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Pattern;

public class SalesManVeriPasswordDto {
    @Pattern(regexp=PatternConstants.PHONE, message="手机号格式错误")
    @ApiModelProperty(required=true, example="手机号码")
    private String phone;
    @Pattern(regexp= PatternConstants.VERIFY_CODE, message="验证码错误")
    @ApiModelProperty(required=true, example="验证码（6位数字）")
    private String code;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "SalesManVeriPasswordDto{" +
                "phone='" + phone + '\'' +
                ", code='" + code + '\'' +
                '}';
    }
}
